package com.mzj.saas.mservice.sys.repository;

import com.mzj.saas.mservice.sys.entity.BacklogItemMessageUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface BacklogItemMessageUserRepository extends PagingAndSortingRepository<BacklogItemMessageUser, Long>, JpaSpecificationExecutor<BacklogItemMessageUser> {
    BacklogItemMessageUser findByUserIdAndOrgId(String userId,Long orgId);
    List<BacklogItemMessageUser> findByUserId(String userId);
    BacklogItemMessageUser findByUserIdAndOrgIdAndType(String userId,Long orgId,Integer type);
}
